package com.andaily.domain.thing;

import java.util.Arrays;
import java.util.List;

/**
 * @author Shengzhao Li
 */
public enum ThingStatus {

    CREATED("新建"),
    PENDING("进行中"),
    END("结束"),
    CANCEL("取消");

    private String label;

    ThingStatus(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public static List<ThingStatus> defaultCreatedStatuses() {
        return Arrays.asList(ThingStatus.CREATED, ThingStatus.PENDING);
    }
}
